<?php


class ProductsAction extends Action{
	
	public function _initialize(){
		Vendor("WxJS.AutoLoad");
		$jssdk = new JSSDK(C("WX_APP_ID"), C("WX_APP_SECRET"));
		$signPackage = $jssdk->GetSignPackage();
		$this->assign('signPackage',$signPackage);
	}
	
	function HotSellProject(){
		
// 		$hList = webservice('Products', 'HotSellProject');
		
// 		$this->assign('hList',$hList);
// 		$this->display('products/HotSellProject');

		$title = "用户喜爱";
		$this->assign('title',$title);
		
		
		$ob = new AccountAction();
		$ob->hot();
	}
	
	function HotSellProjectByMaster(){
		
	    //oyEL0t8AG2GPYvOwIfefR5mshOkc
		
// 		$hList = webservice('Products', 'HotSellProjectByMaster');
		
// 		$this->assign('hList',$hList);
// 		$this->display('products/HotSellProjectByMaster');
		
		$title = "店长推荐";
		$this->assign('title',$title);
		
		$ob = new AccountAction();
		$ob->hot();
		
	}
	
}